package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.DaoEcologyPointsApplyExchangeRecords;
import com.sc.nft.entity.vo.PointsApplyExchangeRecordsPageVO;
import com.sc.nft.enums.PointsExchangeCollectionConsumeTypeEnum;
import com.sc.nft.enums.PointsExchangeCollectionStatusEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface DaoEcologyPointsApplyExchangeRecordsMapper extends BaseMapper<DaoEcologyPointsApplyExchangeRecords> {

    IPage<PointsApplyExchangeRecordsPageVO> getPage(@Param("daoId") Long daoId, @Param("applyStatus") PointsExchangeCollectionStatusEnum applyStatus, @Param("collectionId") Long collectionId, @Param("startTime") Date startTime, @Param("endTime") Date endTime, Page mp, @Param("consumeType") PointsExchangeCollectionConsumeTypeEnum consumeType);

}
